<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="author" content="wangbo" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
    /* [name]{
      background-color: red;
    } */
    /* 属性值只能是ss */
    /* [name='ss']{
      background-color: red;
    } */
    /* 包含ss */
    /* [name*='ss']{
      background-color: red;
    } */
    /* ss^ 开头 */
    /* [name^='ss']{
      background-color: red;
    } */
    /* $ss结尾 */
    [name$='ss']{
      background-color: red;
    }
		</style>
	</head>
	<body>
    <p >没有属性</p>
    <p name='ss'>我是有属性的</p>
    <p name='ssdd'>我是有属性的</p>
    <p name='ddss'>我是有属性的</p>
    <p name='dd'>我是有属性的</p>
	</body>
</html>
